package com.liugege.make.factory.factorymethod.pizzastore.pizza;

public class BJOrderPizza extends  OrderPizza {
    @Override
    Pizza createPizza(String orderType) {
        Pizza pizza = null;
        if ("cheese".equals(orderType)){
            pizza = new BJCheesePizza();
            pizza.setName("奶酪披萨");
        }else if ("pepper".equals(orderType)){
            pizza = new BJPepperPizza();
            pizza.setName("胡椒披萨");
        }
        return pizza;
    }
}
